const mongoose = require("mongoose");

const { Law, LawItem } = require("./lawSchema");

// 定义一个新的集合名称
const searchLawCollection = "SearchLaw";
const searchItemLawCollection = "SearchLawItem";

// 创建新的集合模型用于存放搜索数据
const SearchLaw = mongoose.model(searchLawCollection, Law.schema);
const SearchLawItem = mongoose.model(searchItemLawCollection, LawItem.schema);

module.exports = {
  SearchLaw,
  SearchLawItem,
};
